CygNet Bridge API

CygNet Bridge API is a separately available CygNet product that provides a web service to request your CygNet data over the internet, allowing you to create your own web applications to securely access your CygNet system data. CygNet Bridge API is a REST API delivering HTTP requests and responses. The API allows reading, modifying and deleting of CygNet Point records.

Accessing the CygNet Bridge API requires the installation of CygNet Bridge software, and the Bridge API feature must be selected as an option during the CygNet Bridge installation process. CygNet Bridge maintains secure data access, allowing you to access required CygNet data without direct access to a CygNet system. You can optionally require two-factor authentication to be granted access to the CygNet Bridge API.

Notes:

CygNet Bridge API License

CygNet Bridge API is licensed in conjunction with CygNet Bridge, which must be licensed separately from existing CygNet SCADA or CygNet Measurement software components. Licensing for CygNet Bridge API is provided according to license type; you can obtain Base licensing for API access, or obtain optional Alarm and/or Control licensing to gain access to additional features. For more information about obtaining and licensing the CygNet Bridge API and CygNet Bridge products, contact your Account Manager or CygNet Sales.

Features included in each license type are described in the following table.

License Type CygNet Bridge API Features Included

Base

All CygNet Bridge APIs except those features provided with the "Alarm" or "Control" licenses. See API Information Types for a list of provided types.

Alarm

All base license features plus:

  • Acknowledge alarms
  • Clear alarms (and optionally force clear)

Control

All base license features plus:

  • Issue commands to a device
  • Initiate polling of a device data group
  • Retrieve data group element ID (DEID) values from a device
  • Send data group element ID (DEID) values to a device
  • Send data group transaction data to a device
  • Set values for a point

Note: When you install an updated CygNet license file, recycle CygNet Bridge in the IIS Application Pools list using the IIS Manager to refresh your web application and pick up new functionality. Refer to Microsoft IIS (Internet Information Services) documentation if you need more information about that process.

Access CygNet Bridge API

CygNet Bridge API requires the installation of CygNet Bridge software, and must be selected as an option during the CygNet Bridge installation process.

Accessing the CygNet Bridge API includes the following steps.

  1. Prepare your system.
  2. Install CygNet Bridge, selecting the option to install CygNet Bridge API.
  3. Access the CygNet Bridge API.

Use CygNet Bridge API

Use CygNet Bridge API in conjunction with CygNet Bridge and CygNet Software to access your CygNet data via the web. Refer to the CygNet Release Documents for more information about current software version requirements and considerations appropriate for your installation and usage.

API Information Types

A variety of CygNet Bridge APIs are provided to support operations involving the following CygNet information types.

 
  • Access
  • Alarms
  • Devices
  • Facilities
  • Measurement
  • Groups
  • History
  • Notes
  • Points
  • Real-time
  • Services
  • Tables

Note: Some API calls require specific licensing types. See Licensing above.

The CygNet Bridge APIs are accessible to authorized users of a licensed CygNet installation who are also authorized on the web server domain. Access is granted according to configured permission levels and the features you have licensed.

Authorization depends on:

Request an authorization token via the ClientLoginAPI method in your CygNet Bridge site in IIS. Prior to calling any CygNet Bridge API methods, obtain an authorization token, using the method clientloginapi/api/login and then pass the obtained token into all CygNet Bridge API requests in a header named X-WFT-AuthToken. The token is retained for 7 days before expiration.

Valid CygNet Bridge API requests must contain headers for the authorization token received and the CygNet domain ID, as follows.

CygNet Bridge API errors are logged to your Weatherford\CygNetBridge\Logs folder as CygNetBridgeApi[logfile number].csv files

CygNet Bridge API Sample Web Application

Assistance using the Bridge API is provided via a sample application. The CygNet Bridge API installation set includes the sample web application (BridgeAPISampleApp\sample folder in your CygNet Bridge source files) that contains examples for using the Bridge API to develop your customized web application, and for using two-factor authentication. See Building the CygNet Bridge API Sample Web Application for more information.

Access CygNet Bridge API User Assistance

CygNet Bridge API generates web-accessible user documents using an auto-generated interactive documentation library tool. On a deployed API system these documents provide up-to-date information to help developers with API usage including example requests / responses and details about each request. The built-in online help will deploy automatically when you install the new APIs.

Navigate to localhost/CygNet/Help to access the help documents after CygNet Bridge is installed.

Note: If you have installed CygNet Bridge with HTTPS (strongly recommended), navigate to https://[YourWebHostName]/CygNet/Help.

CygNet Bridge API Help Offline

An offline version of the CygNet Bridge API Help is provided within the CygNet Help as a reference tool. See the CygNet Bridge API Help Page.

CygNet Help

Other portions of the CygNet Help also pertain to preparation or installation of CygNet Bridge API. The following related topics may prove helpful:

See thepdf iconCygNet Bridge Installation Guide, which provides the same content as is available in the main CygNet Help in PDF format.

To address questions or circumstances beyond the scope of the CygNet Help, Additional CygNet Resources are available.


More:

Back to top